package io;

import java.io.FileOutputStream;
import java.io.IOException;

public class demo2 {
	public static void main(String[] args) throws IOException{
		//true  继续写入
		FileOutputStream fos=new FileOutputStream("E:\\javacode\\111\\src\\io\\a.txt", true);
		for (int i = 0; i < 3; i++) {
			fos.write("你好".getBytes());
			fos.write("\r\n".getBytes());//换行写入
		}
		fos.close();
	}
}
